
Object.defineProperty(exports, "__esModule", { value: true });
var log_1 = __webpack_require__(/*! ./../utils/log */ "./src/core/utils/log.ts");
var IMSDKWebLocalStorage = /** @class */ (function () {
    function IMSDKWebLocalStorage() {
    }
    IMSDKWebLocalStorage.prototype.set = function (key, value) {
        try {
            if (!window || !window.localStorage) {
                return;
            }
            window.localStorage.setItem(key, value);
        }
        catch (error) {
            log_1.default.error('IMSDKWebLocalStorage::set key:' + key + ' value:' + value + ' error:' + error);
        }
    };
    IMSDKWebLocalStorage.prototype.get = function (key) {
        try {
            if (!window || !window.localStorage) {
                return null;
            }
            return window.localStorage.getItem(key);
        }
        catch (error) {
            log_1.default.error('IMSDKWebLocalStorage::get key:' + key + ' error:' + error);
        }
        return null;
    };
    IMSDKWebLocalStorage.prototype.remove = function (key) {
        try {
            if (!window || !window.localStorage) {
                return;
            }
            window.localStorage.removeItem(key);
        }
        catch (error) {
            log_1.default.error('IMSDKWebLocalStorage::remove key:' + key + ' error:' + error);
        }
    };
    return IMSDKWebLocalStorage;
}());
exports.default = IMSDKWebLocalStorage;


//# sourceURL=webpack://MTDX/./src/core/utils/web_localstorage.ts?